package com.dycx.food.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dycx.food.converter.OrderGoodsConverter;
import com.dycx.food.dto.OrderGoodsDTO;
import com.dycx.food.entity.OrderGoodsDO;
import com.dycx.food.mapper.OrderGoodsFoodMapper;
import com.dycx.food.service.OrderGoodsFoodService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class OrderGoodsFoodImpl extends ServiceImpl<OrderGoodsFoodMapper, OrderGoodsDO> implements OrderGoodsFoodService {

    /**
     * 修改备注
     *
     * @param
     * @return
     */
    @Override
    public Boolean updateRemark(OrderGoodsDTO dto) {
        return this.updateById(OrderGoodsConverter.dtoToEntity(dto));
    }


}
